﻿
    using Chain.BLL;
    using System;
    using System.Data;
    using System.Text.RegularExpressions;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public partial class historyconvertgiftByStores : Page
    {
        private GiftExchange GiftExchangeBll = new GiftExchange();


        protected void Page_Load(object sender, EventArgs e)
        {
            if ((base.Request.Cookies["uid"] != null) && Regex.IsMatch(base.Request.Cookies["uid"].Value, @"^\d+$"))
            {
                int MemID = Convert.ToInt32(base.Request.Cookies["uid"].Value);
                DataTable dt = this.GiftExchangeBll.GetList("MemID=" + MemID + " order by ExchangeID desc").Tables[0];
                this.rptHistoryconvertgiftByStores.DataSource = dt;
                this.rptHistoryconvertgiftByStores.DataBind();
                if (dt.Rows.Count == 0)
                {
                    this.msg.Style.Add("display", "");
                }
            }
        }
    }


